From: Colin Walters Date: Fri, 21 Nov 2008 20:45:35 +0000 (+0000) Subject: Fix app event handling X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~11563 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=07877e7a7aeae8554d3757428cb950033ec5946b;p=gnome-shell.git Fix app event handling We need to hook up to events on the group, and not set higher level actors to be reactive. svn path=/trunk/; revision=77 --- diff --git a/js/ui/appdisplay.js b/js/ui/appdisplay.js index 87775cc4a..72af3297c 100644 --- a/js/ui/appdisplay.js +++ b/js/ui/appdisplay.js @@ -36,13 +36,13 @@ AppDisplayItem.prototype = { this._group = new Clutter.Group({reactive: true, width: width, height: APPDISPLAY_HEIGHT}); - this._bg = new Clutter.Rectangle({ color: APPDISPLAY_BACKGROUND_COLOR, - reactive: true, x: 0, y: 0 }); - this._group.add_actor(this._bg); - this._bg.connect('button-press-event', function(group, e) { + this._group.connect('button-press-event', function(group, e) { me.emit('launch'); return true; }); + this._bg = new Clutter.Rectangle({ color: APPDISPLAY_BACKGROUND_COLOR, + x: 0, y: 0 }); + this._group.add_actor(this._bg); this._icon = new Clutter.Texture({ width: 48, height: 48, x: 0, y: 0 }); let gicon = appinfo.get_icon();